/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ecouteurs;

import controleur.Controleur;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JSlider;

/**
 *
 * @author Christine
 */
public class EcouteurVitesse implements MouseListener {
    
    private JSlider vitesse;
    
    public EcouteurVitesse(JSlider vitesse){
        this.vitesse = vitesse;
    }

    public void mouseClicked(MouseEvent e) {
        Controleur.setVitesse(vitesse.getValue());
    }

    public void mousePressed(MouseEvent e) {
    }

    public void mouseReleased(MouseEvent e) {
    }

    public void mouseEntered(MouseEvent e) {
    }

    public void mouseExited(MouseEvent e) {
    }

}
